package com.huaxingbankas.modules.dao;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.huaxingbankas.core.base.dao.hibernate.GenericDAO;
import com.huaxingbankas.modules.model.Users;
public interface UsersDAO extends GenericDAO<Users, Integer>{
	public Users findByUsername(String username);
	//@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public abstract UserDetails loadUserByUsername(String username)throws UsernameNotFoundException;
}

